﻿@{
    ViewBag.Title = "添加项目时间轴";
    Layout = "~/Views/Shared/_LayoutFore.cshtml";
}

@section style{

}
@section script{
    <script src="~/Content/assets/DatePicker/WdatePicker.js"></script>
    <script type="text/javascript">
        $(function () {
            //验证初始化 
            $("form").Validform({
                tiptype: 3
            });
        })

        function OnSuccess(data) {
            if (data.status == 1) {
                $.dialog.tips(data.message, 2, 'tips.gif', function () {
                    window.location.href = data.data;
                });
            } else {
                return false;
            }
            return false;
        }
    </script>
}
<style>
    .tab-content dl dt:first-child {
        width: 100px;
        text-align: right;
    }
</style>
@model LY.Entity.R_ProjectDatelinetree
<div class="RightContrent">
    <div style="margin-left: 50px; margin-right: 50px;">
        <div class="tab-content">
            <div class="line10"></div>
            <div class="line10"></div>
            <div class="tab_title">@ViewBag.Title</div>
            <div class="tab-content">
                <div style="width: 16px; height: 12px; float: left;">
                    <img src="~/Content/Images/leftarraw.png" />
                </div>
            </div>
            <div class="tab-content_border">
                <div class="u-center">
                    <div class="line10"></div>
                    <div class="u-form-wrap">
                        @using (Ajax.BeginForm("ProjectDatelinetreeEdit", "UserProject", new AjaxOptions() { OnSuccess = "OnSuccess" }))
                        {   
                            @Html.HiddenFor(model => model.ProjectId)
                            @Html.HiddenFor(model => model.Id)
                            <div class="tab-content">
                                <dl>
                                    <dt>标题名称： </dt>
                                    <dd>
                                        @Html.TextBox("Name", null, new { @class = "input normal", datatype = "s2-100", nullmsg = "请输入标题", sucmsg = " " })
                                    </dd>
                                </dl>
                                <dl>
                                    <dt>简介：</dt>
                                    <dd>
                                        @Html.TextBox("Demo", null, new { @class = "input normal", datatype = "s2-200" })
                                    </dd>
                                </dl>
                                <dl>
                                    <dt>链接地址：</dt>
                                    <dd>
                                        @Html.TextBox("Url", null, new { @class = "input normal", datatype = "url" })
                                    </dd>
                                </dl>
                                <dl>
                                    <dt>发生时间：</dt>
                                    <dd>
                                        <dd>@Html.TextBox("AddTime", Model.AddTime.ToString(), new { @class = "input  normal", datatype = "*", @onclick = "WdatePicker();" })</dd>
                                    </dd>
                                </dl>
                                <dl>
                                    <dd style="margin-left: 100px">
                                        <input type="submit" value="确定" id="btnSure" name="btnSure" class="btn" />
                                        <a href="/UserProject/MyProject" class="btn" style="color: white">返回</a>
                                    </dd>
                                </dl>
                            </div>
                        }
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
